REP = -I ../OCamlToFs
CONV = camlp4o $(REP) Camlp4F.cmo
CONVD = camlp4o $(REP) Camlp4FD.cmo
FILES = priority_by_relation.ml automaton.ml dyplex.ml argument.ml dyp.ml dypgen_parser.ml dypgen.ml 
FS = $(FILES:.ml=.fs)
FSD = $(FILES:.ml=.xfs)

%.fs: %.ml		
	$(CONV) $< -o ../FDypgen/Dypgen/$@

%.xfs: %.ml		
	$(CONVD) $< -o ../FDypgen/Dypgen/$@	
	
all: $(FS)
	rm *.temp

debug: $(FSD)
	rm ../FDypgen/Dypgen/*.fs
	rename .xfs .fs ../FDypgen/Dypgen/*.xfs
	rm *.temp